package cn.bjc.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.bjc.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@Data   //包含get,set,toString
@AllArgsConstructor //有参构造
@NoArgsConstructor  //无参构造
public class Shop extends BaseDomain {
    
    //店铺名
    @Excel(name="店铺名称",width = 30)
    private String name;
    
    //店铺电话
    @Excel(name="店铺电话",width = 30)
    private String tel;
    
    //入驻时间
    @Excel(name="注册日期",width = 30,exportFormat = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date registerTime = new Date();
    
    //店铺状态
    //1:待审核
    //2:审核通过
    //3:待激活
    //4:驳回
    @Excel(name="店铺状态",width = 30)
    private Integer state = 1;
    
    //店铺地址
    @Excel(name="店铺地址",width = 50)
    private String address;
    
    //店铺logo
    @Excel(name="店铺logo",width = 30)
    private String logo;
    
    //店长(管理员id),外键连接到employee
    @Excel(name="店长id",width = 20)
    private Long admin_id;

    //店长对象
    private Employee shopManager=new Employee();
    
    //接收前端传来的对象
    private Employee admin;

    
}
